package com.lhgg.examol.emp.action;

import com.lhgg.examol.action.BaseAction;
import com.lhgg.examol.emp.bean.Emp;
import com.lhgg.examol.emp.service.EmpService;
import com.opensymphony.xwork2.ModelDriven;

public class EmpAction extends BaseAction implements ModelDriven<Emp> {
	private EmpService service;
	private Emp emp = new Emp();

	public EmpService getService() {
		return service;
	}

	public void setService(EmpService service) {
		this.service = service;
	}

	public String getAll() throws Exception {
		request.setAttribute("emps", service.getAll());
		return "success";
	}

	public Emp getModel() {
		// TODO Auto-generated method stub
		return null;
	}

}
